Skip to content

Conversation

@erikvansebille
Copy link
Member

This PR makes sure shapes stay consistent for single-face queries, and adds a small safeguard against zero norms

This makes sure shapes stay consistent for single-face queries, and adds a small safeguard against zero norms
Copy link
Contributor

@VeckoTheGecko VeckoTheGecko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - just a clarifying comment below. I think it would be good to merge to enable #2443 if there's nothing more pending for this PR

if np.any(ei):
indices = self.unravel_index(ei)
fi = indices.get("FACE")
is_in_cell, coords = uxgrid_point_in_cell(self.uxgrid, y, x, fi, fi)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious about this line change here - was the wrong object being passed before?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this was indeed the wrong object being passed before. And our tests not picking it up...

@erikvansebille erikvansebille merged commit d0cb317 into v4-dev Jan 6, 2026
11 checks passed
@erikvansebille erikvansebille deleted the fix_uxgrid_indexsearch_bug branch January 6, 2026 09:16
@github-project-automation github-project-automation bot moved this from Backlog to Done in Parcels development Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants